package com.example.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.catalina.LifecycleState;

/**
* <p>
* 角色菜单表
* </p>
*
* @author wsl
* @since 2022-03-27
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("role_menu")
@ApiModel(value = "RoleMenu对象", description = "角色菜单表")
public class RoleMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("角色菜单编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("角色编号")
    private Integer roleId;

    @ApiModelProperty("菜单编号")
    private Integer menuId;

    @ApiModelProperty("菜单集合")
    @TableField(exist = false)
    private List<Integer> menuList;

    @ApiModelProperty("是否启用")
    private Integer enabled;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
